<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\ChildClass;
use Illuminate\Http\Request;

class ChildClassController extends Controller
{
    public function page() {

        return ChildClass::where(
            'pa_parent','=',
            Request::capture()->get('pid',1)
        )->paginate(
            Request::capture()->get('num',5)
        );
    }
}
